package com.ruoyi.qynygl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qynygl.mapper.TbQynyglLssjcxMapper;
import com.ruoyi.qynygl.domain.TbQynyglLssjcx;
import com.ruoyi.qynygl.service.ITbQynyglLssjcxService;

/**
 * 历史数据查询Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-11
 */
@Service
public class TbQynyglLssjcxServiceImpl implements ITbQynyglLssjcxService 
{
    @Autowired
    private TbQynyglLssjcxMapper tbQynyglLssjcxMapper;

    /**
     * 查询历史数据查询
     * 
     * @param id 历史数据查询主键
     * @return 历史数据查询
     */
    @Override
    public TbQynyglLssjcx selectTbQynyglLssjcxById(Long id)
    {
        return tbQynyglLssjcxMapper.selectTbQynyglLssjcxById(id);
    }

    /**
     * 查询历史数据查询列表
     * 
     * @param tbQynyglLssjcx 历史数据查询
     * @return 历史数据查询
     */
    @Override
    public List<TbQynyglLssjcx> selectTbQynyglLssjcxList(TbQynyglLssjcx tbQynyglLssjcx)
    {
        return tbQynyglLssjcxMapper.selectTbQynyglLssjcxList(tbQynyglLssjcx);
    }

    /**
     * 新增历史数据查询
     * 
     * @param tbQynyglLssjcx 历史数据查询
     * @return 结果
     */
    @Override
    public int insertTbQynyglLssjcx(TbQynyglLssjcx tbQynyglLssjcx)
    {
        return tbQynyglLssjcxMapper.insertTbQynyglLssjcx(tbQynyglLssjcx);
    }

    /**
     * 修改历史数据查询
     * 
     * @param tbQynyglLssjcx 历史数据查询
     * @return 结果
     */
    @Override
    public int updateTbQynyglLssjcx(TbQynyglLssjcx tbQynyglLssjcx)
    {
        return tbQynyglLssjcxMapper.updateTbQynyglLssjcx(tbQynyglLssjcx);
    }

    /**
     * 批量删除历史数据查询
     * 
     * @param ids 需要删除的历史数据查询主键
     * @return 结果
     */
    @Override
    public int deleteTbQynyglLssjcxByIds(Long[] ids)
    {
        return tbQynyglLssjcxMapper.deleteTbQynyglLssjcxByIds(ids);
    }

    /**
     * 删除历史数据查询信息
     * 
     * @param id 历史数据查询主键
     * @return 结果
     */
    @Override
    public int deleteTbQynyglLssjcxById(Long id)
    {
        return tbQynyglLssjcxMapper.deleteTbQynyglLssjcxById(id);
    }
}
